home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part1 / 4368 < prev    next >
Encoding:
Text File  |  1996-08-05  |  2.0 KB  |  60 lines

  1. Newsgroups: comp.sys.amiga.misc
  2. References: <310d1327@cu-amiga.demon.co.uk> 
  3. X-Newsreader: UMSZCo V1.1 BETA 11 (3.2.96)
  4. Mime-version: 1.0
  5. Content-Type: text/plain; charset=iso-8859-1
  6. Content-Transfer-encoding: 8BIT
  7. Path: news.tng.oche.de!tomate.tng.oche.de
  8. X-Gateway: ZCONNECT UE utomate.tng.oche.de.tomate.tng.oche.de [PolyNet zTOr V4.901 Serie: "light"]
  9. Subject: Re: .key
  10. Date: Sun,  4 Feb 96 12:27:59 GMT
  11. Message-ID: <68771375@0humpty.tomate.tng.oche.de>
  12. From: humpty@TOMATE.TNG.OCHE.DE (Andreas Mixich)
  13.  
  14. anthony@cu-amiga.demon.co.uk wrote about ".key" on "29-Jan-1996 12:34:15 [S+0]"
  15. at zer.COMP.SYS.AMIGA.MISC:
  16.  
  17.  
  18. > I've seen similar scripts using commands like this. They're normally followed
  19. > up with .bra lines. I think they're an Amigados way of passing arguments to
  20. > the
  21. > script based on what was called from Workbench, although don't quote me on
  22. > that
  23. > as I've never understood them myself fully. Equivalent to the Arexx Parse Arg
  24. > perhaps?
  25.  
  26.  
  27. From the DOS manual (Aminet/I/dont/know/where)
  28.  
  29. To have a script taking arguments like FILE, HELP, PUBSCREEN you can start
  30. it with the following:
  31.  
  32. .key FILE,HELP/S,PUBSCREEN
  33. .bra {
  34. .ket }
  35.  
  36. IF {HELP}
  37.     ECHO "This is the helptext"
  38. ELSE
  39.     rtEZRequest TITLE "Some Title" BODY "File {FILE} has been successfully
  40.     deleted" PUBSCREEN {PUBSCREEN}
  41. ENDIF
  42.  
  43. As you see you can parse arguments, as you guessed right. To allow the
  44. programmer to define other brackets, the commands .bra and .ket have been
  45. designed. There exist some more "point comands" like .DEF etc. For more I
  46. suggest you to read either the DOS manual, or if you were so unlucky like
  47. me getting an A1200 without manuals, the DOSMAN.LHA (or so) on
  48. Aminet/Text or DEV/GUI (cause it was designed as an GUI maker example for
  49. DOS scripts). I forgot, sorry.
  50.  
  51.  
  52. -- 
  53. Ciao, Andreas
  54. Internet: humpty@tomate.tng.oche.de
  55. FIDO    : 2:244/1544.14
  56.  
  57. +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=++=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
  58. Join in the new game that's sweeping the country.  It's called "Bureaucracy".  Everybody stands in a circle.  The first person to do anything loses.
  59.  
  60.